package org.ham007.proxysender.server.twitter.cmd;

import twitter4j.DirectMessage;

@SuppressWarnings("serial")
/**
 * パース例外
 */
public class CommandParseException extends Exception {
	
	private DirectMessage dm;
	private CommandProcesser processer;
	
	public CommandParseException(DirectMessage dm, CommandProcesser processer)
	{
		this.dm = dm;
		this.processer = processer;
	}
	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("ParseError");
		sb.append("    ProcesserType:");
		sb.append(processer.getClass().getName());
		sb.append("    RawMessage:");
		sb.append(dm.getText());
		return sb.toString();
	}
}
